const fp = require('lodash/fp')

const fristLetterToUpper = fp.flowRight(fp.join('.'), fp.map(fp.flowRight(fp.first, fp.toUpper)), fp.split(' '))
console.log(fristLetterToUpper('world wild web'))